package com.record.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.record.dto.FormulaIngredientDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
@TableName("t_article")
@ApiModel(value = "Article对象", description = "")
public class Formula {

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("方剂名")
    private String formulaName;

    @ApiModelProperty("功效（整体功效）")
    private String efficacy;

    @ApiModelProperty("一个方剂包含多个组方药材（多对一关系）")
    private List<FormulaIngredientDto> ingredients;

}
